# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-snmp-session
pkgver=1.16
pkgrel=2
pkgdesc="A SNMP Perl Module"
url="https://github.com/sleinen/snmp-session"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0-or-later"
options="!check" # no testsuite
depends="perl"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sleinen/snmp-session/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/snmp-session-$pkgver"

build() {
	perl Makefile.PL INSTALLDIRS=vendor
	make MAN1EXT=1p MAN3EXT=3pm
}

package() {
	make install MAN1EXT=1p MAN3EXT=3pm DESTDIR="$pkgdir"
	find "$pkgdir" -name perllocal.pod -delete
	find "$pkgdir" -name .packlist -delete
}

sha512sums="
fa0baa4423088198ea533d432118ab4760540416673ef72ae13ad9544f76ebccb42ae274337a392be33c74ed682e623d9f77ce43cadb9d2c9bf401b404583e4e  perl-snmp-session-1.16.tar.gz
"
